<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./assets/css/profile.css">
    <!--核心插件样式-->
    <link rel="stylesheet" href="./assets/css/notiflix.css">

    <!-- jquery  -->
    <script src="./assets/js/jquery.min.js"></script>

    <!-- axios  -->
    <script src="./assets/js/axios.min.js"></script>

    <!-- 提示插件 -->
    <script src="./assets/js/notiflix-1.3.0.min.js"></script>

    <!-- 请求接口封装文件 -->
    <script src="./util/request.js"></script>
</head>

<body>
    <div class="headerbox">
        <div class="header" style="z-index: 99;">
            <div class="headerL">
                <a href="my.html" class="goback"><img src="./assets/images/goback.png" /></a>
            </div>
            <div class="headerC">
                <p>充值中心</p>
            </div>
            <div class="headerR"></div>
        </div>
    </div>
    <div class="recharge_hurg">
        <ul>
            <li :class="[index == status ? 'bechoice':'']" v-for="(item,index) in list" :key="index"
                @click="choicePrice(index,item.price)">{{item.price}}元</li>
            <li>
                <input id="otheramount" type="number" placeholder="其他金额" @click="choiceother" v-model="question"
                    onkeyup="this.value=this.value.replace(/\D/g,'')"
                    oninput="  if(value>999999)value=999999;if(value.length>7)value=value.substring(0,7)">
            </li>
            <p class="recharge_hurg_price">
                充值金额：
                <span>{{thePrice}}.00</span><span style="color: black;">元</span>
            </p>
            <div class="recharge_btn" @click="wxpaly">微信充值</div>
    </div>
</body>

</html>
<script>
    $(document).ready(function () {
        let LoginUser = JSON.parse(localStorage.getItem('LoginUser'));
        console.log(LoginUser)
        if (JSON.stringify(LoginUser) === "{}" || LoginUser == null) {
            Notiflix.Notify.Failure("未登陆，请先去登陆");
            location.href = "login.html"
        }
        
    })
</script>